﻿#_*_ coding: UTF-8 _*_

from core import uicomponents, db
from PyQt4 import QtGui, QtCore


def showAddress():
	try:
		a = uicomponents.SharedUi.selectionStartWord.aye
		uicomponents.SharedUi.textDialog.showMe(u'آدرس',"<font face='B Nazanin' size=14>"+u'[%s%d] ص %d' % (a.sure.name.decode('utf-8'),a.n,a.page.page_number)+"</font>")		

	except:
		pass



showAddressAction = QtGui.QAction(u'آدرس عثمان طه', None)
QtCore.QObject.connect(showAddressAction, QtCore.SIGNAL('triggered()'), showAddress)
uicomponents.SharedUi.wordPopupMenu.addAction(showAddressAction)
uicomponents.SharedUi.ayePopupMenu.addAction(showAddressAction)


